package com.basic.modules.ykf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.basic.common.annotation.DictParam;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 子账号不检测记录
 *
 * @author maoheng
 * @email 15738859597@163.com
 * @date 2024-05-31 17:00:21
 */
@Data
@TableName("ykf_not_check_record")
public class YkfNotCheckRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Long notCheckRecordId;
	/**
	 * 日期
	 */
	private Date date;
	/**
	 * 类型 1-当天不检测 2-永远不检测
	 */
	private Integer type;
	/**
	 * 平台编号 字典platform
	 */
	private String platformNo;
	/**
	 * 平台名称
	 */
	@DictParam(field = "platformNo", targetField = "platformName", dictType = "platform")
	private String platformName;
	/**
	 * 店铺ID
	 */
	private Long shopId;
	/**
	 * 店铺编号
	 */
	private String shopNo;
	/**
	 * 店铺名称
	 */
	private String shopName;
	/**
	 * 账号ID
	 */
	private Long subAccountId;
	/**
	 * 账号
	 */
	private String accountNo;
	/**
	 * 账号名称
	 */
	private String accountName;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 创建者ID
	 */
	@TableField(fill = FieldFill.INSERT)
	private Long createUserId;
	/**
	 * 创建人名称
	 */
	@DictParam(field = "createUserId", targetField = "createUserName", dictType = "flowerName")
	@TableField(fill = FieldFill.INSERT)
	private String createUserName;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 合作结束日期
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField(exist = false)
	private Date endDate;


	/**
	 * 查询时间-起
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField(exist = false)
	private Date dateStart;

	/**
	 * 查询时间-止
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField(exist = false)
	private Date dateEnd;

}
